public class ThreadTest extends Thread {
    public static void main(String[] args) {
        ThreadTest thread = new ThreadTest();
        thread.start();
    }

    @Override
    public void run() {
        System.out.println("From Thread");
    }
}
